//
//  MessageModel.h
//  聊天界面
//
//  Created by 周述坚 on 16/11/12.
//  Copyright © 2016年 周述坚. All rights reserved.
//
#import <Foundation/Foundation.h>
typedef enum {
    MessageTypeMe,
    MessageTypeOther
} MessageType;

@interface JPMessageModel : NSObject

@property(copy,nonatomic) NSString *text;
@property(copy,nonatomic) NSString *time;
@property(assign,nonatomic) MessageType type;

@property(assign, nonatomic,getter = isHiddenTime)BOOL hiddenTime;

-(instancetype)initWithDic:(NSDictionary*)dic;
+(instancetype)messageModelWithDic:(NSDictionary*)dic;

@end
